<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCategorysTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('categorys', function (Blueprint $table) {
            $table->increments('catid');
            $table->integer('parentid');
            $table->string('catname',30);
            $table->string('image',100);
            $table->string('keywords',100);
            $table->text('description');
            $table->string('url',100);
            $table->integer('listorder');
            $table->integer('isshow');

        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('categorys');
    }
}
